﻿<UserControl x:Class="MVVMBasedDialogs.CustomerView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Width="446" Height="300"
             d:DesignHeight="300" d:DesignWidth="446">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="111*" />
            <ColumnDefinition Width="331*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Label Content="First Name" Height="25" HorizontalAlignment="Left" 
               Grid.Column="0" Grid.Row="0"
               Margin="6,13,0,0" VerticalAlignment="Top" Width="103" />
        <TextBox Height="28" HorizontalAlignment="Left" Margin="4,12,0,0" 
                 Grid.Row="0" Grid.Column="1" 
                 Text="{Binding FirstName, UpdateSourceTrigger=PropertyChanged}"
                 Name="txtFirstName" VerticalAlignment="Top" Width="318"/>
        <Label Content="Last Name" Height="25" HorizontalAlignment="Left"
               Grid.Column="0" Grid.Row="1"
               Margin="6,6,0,0"  Width="103" />
        <TextBox Height="28" HorizontalAlignment="Left" 
                 Grid.Row="1" Grid.Column="1" Margin="3,6,0,0"
                 Text="{Binding LastName, UpdateSourceTrigger=PropertyChanged}"
                 Name="txtLastName" VerticalAlignment="Top" Width="318" />
    </Grid>
</UserControl>
